using PrimS.Telnet;

namespace BlazorReset.Models;
public class HomeState
{


	public string? Ip { get; set; }
	public DeviceType DeviceType { get; set; }
	public bool ExecuteScriptUponLogin { get; set; }
	public ScriptFile[]? ScriptFiles { get; set; }
	public MultilineCmd[]? Commands { get; set; }
	public string? SelectedScriptFileName { get; set; }
	public ScriptFile? SelectedScriptFile { get => ScriptFiles?.FirstOrDefault(x => x.Name == SelectedScriptFileName); }
	public string? CustomPassword { get; set; }
	public string? Logs { get; set; }
	public bool IsLoggedIn { get; set; }
	public Client? Telnet { get; set; }
	public CancellationTokenSource? Cts { get; set; }
}
